package cn.edu.zjut.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

/**
 * @author XiaoFeng
 * @version 1.0
 * @Description Create by 2021/12/2 12:21
 */

public class BaseHibernateDAO {
    private SessionFactory sessionFactory;

    public Session getSession() {
        return sessionFactory.getCurrentSession();
    }

    public void setSessionFactory(SessionFactory sessionFactory) {
        this.sessionFactory = sessionFactory;
    }
}
